package quanlythuvien

import org.springframework.dao.DataIntegrityViolationException

class IndexController {

    static allowedMethods = [save: "POST", update: "POST", delete: "POST"]

	/*
	 * Routing Request Client
	 * */
    def index() {
		
        def user = session.user		
		if (user){
			// If user has login
			render (view:"/index");
		}else{
			render (view:"/login")
		}
    }
  
}
